#requires AutoHotkey v2
-; UltimateKEYS (for AutoHotkey v2).ahk - 2023-09-08
+; UltimateKEYS (for AutoHotkey v2).ahk - 2024-08-05
-; Website : www.ultimatekeys.info (pieter-degroote.github.io/UltimateKEYS/)
+; Website : https://pieter-degroote.github.io/UltimateKEYS/
-; License : GNU General Public License Version 3
+; GitHub : https://github.com/pieter-degroote/UltimateKEYS
-; GitHub : github.com/pieter-degroote/UltimateKEYS
+; License : GNU General Public License Version 3
-; Requirements :
+; Configuration :
; Keyboard layout (on Windows) : US QWERTY
-; AutoHotkey v2 (www.autohotkey.com)
-
-ListLines False ; omits recently executed lines from history (for privacy and security)
KeyHistory 0 ; disables the key history (for privacy and security)
+ListLines False ; omits recently executed lines from history (for privacy and security)
SendMode "Input" ; optimizes for faster and more reliable input
cmpDoubleAcute["U"] := "{u+0170}" ; (Ű) U with double acute
-; Compose : Hook and Horn (h)
+; Compose : Hook, Horn and Variations (h)
global cmpSmallH := Map()
cmpSmallH["b"] := "{u+0253}" ; (ɓ) b with hook
cmpSmallH["j"] := "{u+0267}" ; (ɧ) small letter heng with hook
cmpSmallH["k"] := "{u+0199}" ; (ƙ) k with hook
cmpSmallH["K"] := "{u+0198}" ; (Ƙ) K with hook
+cmpSmallH["l"] := "{u+026c}" ; (ɬ) l with belt
+cmpSmallH["L"] := "{u+a7ad}" ; (Ɬ) L with belt
cmpSmallH["m"] := "{u+0271}" ; (ɱ) m with hook
cmpSmallH["M"] := "{u+2c6e}" ; (Ɱ) M with hook
cmpSmallH["n"] := "{u+0272}" ; (ɲ) n with left hook
cmpSmallH["Z"] := "{u+0224}" ; (Ȥ) Z with hook
-; Compose : Retroflex Hook, Right Hook, Crossed-Tail and Variations (f)
+; Compose : Retroflex Hook and Variations (f)
global cmpSmallF := Map()
cmpSmallF["d"] := "{u+1d91}" ; (ᶑ) d with hook and tail
cmpSmallF["e"] := "{u+025d}" ; (ɝ) small letter reversed open e with hook
+cmpSmallF["f"] := "{u+1d94}" ; (ᶔ) small letter reversed open e with retroflex hook
cmpSmallF["g"] := "{u+ab36}" ; (ꬶ) small letter script g with crossed-tail
cmpSmallF["h"] := "{u+a727}" ; (ꜧ) small letter heng
cmpSmallF["H"] := "{u+a726}" ; (Ꜧ) capital letter heng
cmpSmallF["j"] := "{u+029d}" ; (ʝ) j with crossed-tail
+cmpSmallF["J"] := "{u+a7b2}" ; (Ʝ) J with crossed-tail
cmpSmallF["l"] := "{u+026d}" ; (ɭ) l with retroflex hook
cmpSmallF["n"] := "{u+0273}" ; (ɳ) n with retroflex hook
cmpSmallF["q"] := "{u+02a0}" ; (ʠ) q with hook
cmpSmallF["z"] := "{u+0290}" ; (ʐ) z with retroflex hook
+; Compose : Swash Tail and Variations (t)
+
+global cmpSmallT := Map()
+cmpSmallT["l"] := "{u+2c61}" ; (ⱡ) l with double bar
+cmpSmallT["L"] := "{u+2c60}" ; (Ⱡ) L with double bar
+cmpSmallT["s"] := "{u+023f}" ; (ȿ) s with swash tail
+cmpSmallT["S"] := "{u+2c7e}" ; (Ȿ) S with swash tail
+cmpSmallT["z"] := "{u+0240}" ; (ɀ) z with swash tail
+cmpSmallT["Z"] := "{u+2c7f}" ; (Ɀ) Z with swash tail
+
+
; Compose : Latin Greek Letters and Variations (l)
global cmpSmallL := Map()
cmpSmallL["?"] := "{u+0294}" ; (ʔ) unicase letter glottal stop
-; Compose : Turned Letters (r)
+; Compose : Turned and Reversed Letters (r)
global cmpSmallR := Map()
cmpSmallR["a"] := "{u+0250}" ; (ɐ) small letter turned a
cmpSmallR["A"] := "{u+2c6f}" ; (Ɐ) capital letter turned A
cmpSmallR["b"] := "{u+025c}" ; (ɜ) small letter reversed open e
+cmpSmallR["B"] := "{u+a7ab}" ; (Ɜ) capital letter reversed open E
cmpSmallR["d"] := "{u+018d}" ; (ƍ) Latin small letter turned delta
cmpSmallR["e"] := "{u+01dd}" ; (ǝ) small letter turned e
cmpSmallR["E"] := "{u+018e}" ; (Ǝ) capital letter reversed E
cmpSmallR["Q"] := "{u+2c70}" ; (Ɒ) Latin capital letter turned alpha
cmpSmallR["r"] := "{u+0279}" ; (ɹ) small letter turned r
cmpSmallR["t"] := "{u+0287}" ; (ʇ) small letter turned t
+cmpSmallR["T"] := "{u+a7b1}" ; (Ʇ) small letter turned T
cmpSmallR["v"] := "{u+028c}" ; (ʌ) small letter turned v
cmpSmallR["V"] := "{u+0245}" ; (Ʌ) capital letter turned V
cmpSmallR["w"] := "{u+028d}" ; (ʍ) small letter turned w
cmpSmallR["y"] := "{u+028e}" ; (ʎ) small letter turned y
+cmpSmallR["z"] := "{u+01b9}" ; (ƹ) Latin small letter ezh reversed
+cmpSmallR["Z"] := "{u+01b8}" ; (Ƹ) Latin capital letter ezh reversed
; Compose : Currency Symbols ($)
cmpQuad["3"] := "{u+2001}" ; em quad
-; Compose : Arrows and Pointers
+; Compose : Arrows and Pointing Triangles
global cmpArrow := Map()
cmpArrow["w"] := "{u+25b2}" ; (▲) black up-pointing triangle
cmpSymbols["d"] := "{u+22c4}" ; (⋄) diamond operator
cmpSymbols["e"] := "{u+212e}" ; (℮) estimated symbol
cmpSymbols["f"] := "{u+2640}" ; (♀) female sign (Venus)
-cmpSymbols["h"] := "{u+2126}" ; (Ω) ohm sign (backwards compatibility)
+cmpSymbols["h"] := "{u+2302}" ; (⌂) house
+cmpSymbols["H"] := "{u+2126}" ; (Ω) ohm sign (backwards compatibility)
cmpSymbols["i"] := "{u+2300}" ; (⌀) diameter sign
cmpSymbols["l"] := "{u+2113}" ; (ℓ) script small l
cmpSymbols["L"] := "{u+2112}" ; (ℒ) Laplace transform
cmpSymbols["m"] := "{u+2642}" ; (♂) male sign (Mars)
cmpSymbols["M"] := "{u+2120}" ; (℠) service mark
-cmpSymbols["r"] := "{u+211e}" ; (℞) prescription take (Recipere)
-cmpSymbols["R"] := "{u+211e}" ; (℞) prescription take (Recipere)
+cmpSymbols["p"] := "{u+211e}" ; (℞) prescription take (Recipere)
+cmpSymbols["P"] := "{u+211e}" ; (℞) prescription take (Recipere)
+cmpSymbols["r"] := "{u+211f}" ; (℟) response (liturgy)
+cmpSymbols["R"] := "{u+211f}" ; (℟) response (liturgy)
+cmpSymbols["v"] := "{u+2123}" ; (℣) versicle (liturgy)
+cmpSymbols["V"] := "{u+2123}" ; (℣) versicle (liturgy)
cmpSymbols["x"] := "{u+203b}" ; (※) reference mark
cmpSymbols["2"] := "{u+266b}" ; (♫) beamed eighth notes
cmpSymbols["3"] := "{u+2042}" ; (⁂) asterism
cmpMathSymbols["6"] := "{u+2220}" ; (∠) angle symbol
cmpMathSymbols["9"] := "{u+221f}" ; (∟) right angle
cmpMathSymbols["0"] := "{u+2221}" ; (∡) measured angle
+cmpMathSymbols[","] := "{u+2219}" ; (∙) bullet operator
cmpMathSymbols["+"] := "{u+2295}" ; (⊕) circled plus
cmpMathSymbols["-"] := "{u+2296}" ; (⊖) circled minus
cmpMathSymbols["*"] := "{u+2297}" ; (⊗) circled times
global cmpCapitalN := Map()
global cmpCapitalO := Map()
global cmpCapitalS := Map()
-global cmpSmallT := Map()
global cmpCapitalT := Map()
cmpArrow["e"] := "{u+00e6}" ; (æ) letter ae
cmpCapitalA["E"] := "{u+00c6}" ; (Æ) letter AE
global cmpDigitEight := Map()
global cmpCapitalP := Map()
-global cmpSemicolon := Map()
+global cmpVerticalLine := Map()
global cmpAsterisk := Map()
global cmpExclam := Map()
global cmpQuestion := Map()
cmpSymbols["o"] := "{u+00a7}" ; (§) section sign
cmpCapitalS["o"] := "{u+00a7}" ; (§) section sign
cmpSmallT["m"] := "{u+2122}" ; (™) trademark symbol
-cmpSemicolon["b"] := "{u+2022}" ; (•) bullet
-cmpSemicolon[";"] := "{u+2022}" ; (•) bullet
-cmpSemicolon["t"] := "{u+2023}" ; (‣) triangular bullet
-cmpSemicolon[">"] := "{u+2023}" ; (‣) triangular bullet
-cmpSemicolon["h"] := "{u+2043}" ; (⁃) hyphen bullet
-cmpSemicolon["-"] := "{u+2043}" ; (⁃) hyphen bullet
-cmpSemicolon["w"] := "{u+25e6}" ; (◦) white bullet
-cmpSemicolon["o"] := "{u+25e6}" ; (◦) white bullet
+cmpVerticalLine["|"] := "{u+2016}" ; (‖) double vertical line
cmpAcuteAccent["1"] := "{u+2032}" ; (′) prime
cmpAcuteAccent["2"] := "{u+2033}" ; (″) double prime
cmpAcuteAccent["3"] := "{u+2034}" ; (‴) triple prime
cmpStroke["/"] := "{u+00f7}" ; (÷) division sign
cmpAsterisk["o"] := "{u+00b0}" ; (°) degree sign
cmpRingAbove["*"] := "{u+00b0}" ; (°) degree sign
-cmpDotAbove["."] := "{u+00b7}" ; (·) middle dot
+cmpDotAbove["-"] := "{u+00b7}" ; (·) middle dot
cmpDotAbove["3"] := "{u+2026}" ; (…) horizontal ellipsis
+cmpDotAbove["."] := "{u+2026}" ; (…) horizontal ellipsis
cmpArrow["-"] := "{u+00aa}" ; (ª) feminine ordinal indicator (Spanish, Portuguese, Italian, Galician)
cmpRingAbove["-"] := "{u+00ba}" ; (º) masculine ordinal indicator (Spanish, Portuguese, Italian, Galician)
cmpExclam["!"] := "{u+00a1}" ; (¡) inverted exclamation mark
cmpTilde["~"] := "{u+2248}" ; (≈) almost equal to
+; Compose : Bullets and Small Geometric Shapes (;)
+
+global cmpSemicolon := Map()
+cmpSemicolon["b"] := "{u+2022}" ; (•) bullet
+cmpSemicolon["o"] := "{u+25e6}" ; (◦) white bullet
+cmpSemicolon["h"] := "{u+2043}" ; (⁃) hyphen bullet
+cmpSemicolon["t"] := "{u+2023}" ; (‣) triangular bullet
+cmpSemicolon["q"] := "{u+25aa}" ; (▪) black small square
+cmpSemicolon["u"] := "{u+25ab}" ; (▫) white small square
+cmpSemicolon["w"] := "{u+25b4}" ; (▴) black up-pointing small triangle
+cmpSemicolon["a"] := "{u+25c2}" ; (◂) black left-pointing small triangle
+cmpSemicolon["s"] := "{u+25be}" ; (▾) black down-pointing small triangle
+cmpSemicolon["d"] := "{u+25b8}" ; (▸) black right-pointing small triangle
+cmpSemicolon["i"] := "{u+25b5}" ; (▵) white up-pointing small triangle
+cmpSemicolon["j"] := "{u+25c3}" ; (◃) white left-pointing small triangle
+cmpSemicolon["k"] := "{u+25bf}" ; (▿) white down-pointing small triangle
+cmpSemicolon["l"] := "{u+25b9}" ; (▹) white right-pointing small triangle
+cmpSemicolon["z"] := "{u+25a0}" ; (■) black square
+cmpSemicolon["x"] := "{u+25a1}" ; (□) white square
+cmpSemicolon["c"] := "{u+25c6}" ; (◆) black diamond
+cmpSemicolon["v"] := "{u+25c7}" ; (◇) white diamond
+cmpSemicolon[";"] := "{u+2022}" ; (•) bullet
+
+
; Compose : Vulgar Fractions
global cmpDigitOne := Map()
cmpDigitTwo["t"] := "{u+26a0}" ; (⚠) warning sign
cmpDigitTwo["u"] := "{u+26a1}" ; (⚡) high voltage sign
cmpDigitTwo["v"] := "{u+26d4}" ; (⛔) no entry
+cmpDigitTwo["w"] := "{u+231a}" ; (⌚) watch
+cmpDigitTwo["x"] := "{u+231b}" ; (⌛) hourglass
cmpDigitThree["a"] := "{u+2701}" ; (✁) upper blade scissors
cmpDigitThree["b"] := "{u+2702}" ; (✂) black scissors
>!z:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00c0}" ; (À) A with grave
+ Send "{u+00c1}" ; (Á) A with acute
else
- Send "{u+00e0}" ; (à) a with grave
+ Send "{u+00e1}" ; (á) a with acute
}
>!+z:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00e0}" ; (à) a with grave
+ Send "{u+00e1}" ; (á) a with acute
else
- Send "{u+00c0}" ; (À) A with grave
+ Send "{u+00c1}" ; (Á) A with acute
}
>!x:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00c1}" ; (Á) A with acute
+ Send "{u+00c0}" ; (À) A with grave
else
- Send "{u+00e1}" ; (á) a with acute
+ Send "{u+00e0}" ; (à) a with grave
}
>!+x:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00e1}" ; (á) a with acute
+ Send "{u+00e0}" ; (à) a with grave
else
- Send "{u+00c1}" ; (Á) A with acute
+ Send "{u+00c0}" ; (À) A with grave
}
>!d:: {
>!f:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00c8}" ; (È) E with grave
+ Send "{u+00c9}" ; (É) E with acute
else
- Send "{u+00e8}" ; (è) e with grave
+ Send "{u+00e9}" ; (é) e with acute
}
>!+f:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00e8}" ; (è) e with grave
+ Send "{u+00e9}" ; (é) e with acute
else
- Send "{u+00c8}" ; (È) E with grave
+ Send "{u+00c9}" ; (É) E with acute
}
>!g:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00c9}" ; (É) E with acute
+ Send "{u+00c8}" ; (È) E with grave
else
- Send "{u+00e9}" ; (é) e with acute
+ Send "{u+00e8}" ; (è) e with grave
}
>!+g:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00e9}" ; (é) e with acute
+ Send "{u+00e8}" ; (è) e with grave
else
- Send "{u+00c9}" ; (É) E with acute
+ Send "{u+00c8}" ; (È) E with grave
}
>!r:: {
>!v:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00cc}" ; (Ì) I with grave
+ Send "{u+00cd}" ; (Í) I with acute
else
- Send "{u+00ec}" ; (ì) i with grave
+ Send "{u+00ed}" ; (í) i with acute
}
>!+v:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00ec}" ; (ì) i with grave
+ Send "{u+00ed}" ; (í) i with acute
else
- Send "{u+00cc}" ; (Ì) I with grave
+ Send "{u+00cd}" ; (Í) I with acute
}
>!b:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00cd}" ; (Í) I with acute
+ Send "{u+00cc}" ; (Ì) I with grave
else
- Send "{u+00ed}" ; (í) i with acute
+ Send "{u+00ec}" ; (ì) i with grave
}
>!+b:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00ed}" ; (í) i with acute
+ Send "{u+00ec}" ; (ì) i with grave
else
- Send "{u+00cd}" ; (Í) I with acute
+ Send "{u+00cc}" ; (Ì) I with grave
}
>!t:: {
>!,:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00d2}" ; (Ò) O with grave
+ Send "{u+00d3}" ; (Ó) O with acute
else
- Send "{u+00f2}" ; (ò) o with grave
+ Send "{u+00f3}" ; (ó) o with acute
}
>!<:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00f2}" ; (ò) o with grave
+ Send "{u+00f3}" ; (ó) o with acute
else
- Send "{u+00d2}" ; (Ò) O with grave
+ Send "{u+00d3}" ; (Ó) O with acute
}
>!.:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00d3}" ; (Ó) O with acute
+ Send "{u+00d2}" ; (Ò) O with grave
else
- Send "{u+00f3}" ; (ó) o with acute
+ Send "{u+00f2}" ; (ò) o with grave
}
>!>:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00f3}" ; (ó) o with acute
+ Send "{u+00f2}" ; (ò) o with grave
else
- Send "{u+00d3}" ; (Ó) O with acute
+ Send "{u+00d2}" ; (Ò) O with grave
}
>!p:: {
>!h:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00d9}" ; (Ù) U with grave
+ Send "{u+00da}" ; (Ú) U with acute
else
- Send "{u+00f9}" ; (ù) u with grave
+ Send "{u+00fa}" ; (ú) u with acute
}
>!+h:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00f9}" ; (ù) u with grave
+ Send "{u+00fa}" ; (ú) u with acute
else
- Send "{u+00d9}" ; (Ù) U with grave
+ Send "{u+00da}" ; (Ú) U with acute
}
>!j:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00da}" ; (Ú) U with acute
+ Send "{u+00d9}" ; (Ù) U with grave
else
- Send "{u+00fa}" ; (ú) u with acute
+ Send "{u+00f9}" ; (ù) u with grave
}
>!+j:: {
if GetKeyState("CapsLock", "T")
- Send "{u+00fa}" ; (ú) u with acute
+ Send "{u+00f9}" ; (ù) u with grave
else
- Send "{u+00da}" ; (Ú) U with acute
+ Send "{u+00d9}" ; (Ù) U with grave
}
>!y:: {
>!_::Send "{u+2014}" ; (—) em dash
>!=::Send "{u+00d7}" ; (×) multiplication sign
->!+=::Send "{u+00f7}" ; (÷) division sign
+>!+::Send "{u+00f7}" ; (÷) division sign
>![::Send "{u+00ab}" ; («) left-pointing double angle quotation mark
>!{::Send "{u+2039}" ; (‹) left-pointing single angle quotation mark
>!;::Send "{u+00b0}" ; (°) degree sign
>!+;::Send "{u+00b7}" ; (·) middle dot
->!'::Send "{u+2020}" ; (†) dagger
->!+'::Send "{u+2021}" ; (‡) double dagger
+>!'::Send "{u+266a}" ; (♪) eighth note
+>!"::Send "{u+266b}" ; (♫) beamed eighth notes
>!\::Send "{u+2002}" ; en space
>!|::Send "{u+2003}" ; em space
>!/::Send "{u+00bf}" ; (¿) inverted question mark
->!?::Send "{u+2026}" ; (…) horizontal ellipsis
+>!?::Send "{u+2022}" ; (•) bullet
>!space::Send "{u+00a0}" ; non-breaking space (NBSP)
>!+space::Send "{u+00a0}" ; non-breaking space (NBSP)
; Configuration : Compose Key Selector
>!`::
->!sc056:: {
+>!~::
+>!sc056::
+>!+sc056:: {
ihA := InputHook("L1", gEndKeys)
ihA.Start()
ihA.Wait()
if cmpSmallF.Has(ihB.Input)
Send cmpSmallF[ihB.Input]
}
+ else if (ihA.Input == "t") {
+ if cmpSmallT.Has(ihB.Input)
+ Send cmpSmallT[ihB.Input]
+ }
else if (ihA.Input == "l") {
if cmpSmallL.Has(ihB.Input)
Send cmpSmallL[ihB.Input]
if cmpCapitalS.Has(ihB.Input)
Send cmpCapitalS[ihB.Input]
}
- else if (ihA.Input == "t") {
- if cmpSmallT.Has(ihB.Input)
- Send cmpSmallT[ihB.Input]
- }
else if (ihA.Input == "T") {
if cmpCapitalT.Has(ihB.Input)
Send cmpCapitalT[ihB.Input]
if cmpCapitalP.Has(ihB.Input)
Send cmpCapitalP[ihB.Input]
}
- else if (ihA.Input == ";") {
- if cmpSemicolon.Has(ihB.Input)
- Send cmpSemicolon[ihB.Input]
+ else if (ihA.Input == "|") {
+ if cmpVerticalLine.Has(ihB.Input)
+ Send cmpVerticalLine[ihB.Input]
}
else if (ihA.Input == "*") {
if cmpAsterisk.Has(ihB.Input)
if cmpGreaterThan.Has(ihB.Input)
Send cmpGreaterThan[ihB.Input]
}
+ else if (ihA.Input == ";") {
+ if cmpSemicolon.Has(ihB.Input)
+ Send cmpSemicolon[ihB.Input]
+ }
else if (ihA.Input == "1") {
if cmpDigitOne.Has(ihB.Input)
Send cmpDigitOne[ihB.Input]